vishnu - Tuesday, December 14, 2010 7:11 AM:
How to call aras method from html page?
I have html page with will be invoked by an action. In the html page I have two text fields. I want to pass the field information (in html page) from html page to aras method.
Please help if there is any possibiltiy to call aras method from html page.
Thanks in advance
Brian - Wednesday, December 15, 2010 6:24 AM:
Hi Vishnu,
You need to use Javascript in the HTML page.
Have a look at any of the HTML pages under "Innovator/Client/Scripts"
That will give you an idea of how it is done.
Cheers,
Brian.
SamsAn - Friday, December 17, 2010 3:48 PM:
Hello.
I believe the posts below can be helpful.
www.aras.comhttp:/.../1837.aspx
www.aras.comhttp:/.../2271.aspx
SamsAn.
vishal_trivedi - Saturday, December 18, 2010 1:02 AM:
Hi Vishnu,
You might know that you can get value inserted in a text box from Javascript with either document.getElementById / getElementsByName.
Then you can use Javascript methods for IOM in ARAS.
E.g. If you want to get any Item then it should be like :
var qry = top.aras.newIOMItem('Activity2', 'get');
qry.setProperty('managed_by_id', top.aras.getCurrentUserId());
if (qry.isError())
{
top.aras.AlertError(qry.getErrorString());
}
var iomRes = qry.apply();
var items = iomRes.getItemsByXPath(top.aras.XPathResult("/Item"));
for(var cnt = 0 ;cnt < items.getItemCount();cnt++)
{
}
Above is the small example of Javascript. You can refer "Innovator/Client/Scripts" as Brian already told you.
Over there refer folder SearchCenter/Index.html.
- Vishal
Yoann Maingon - Tuesday, December 21, 2010 6:23 AM:
Hi Vishnu,
One of the very first video we made about aras was "how to do a custom interface in 10 minutes" (it's posted on this blog article: http://www.prodeos.fr/2009/12/07/video-developper-une-interface-en-10-minutes-avec-la-classe-prodeos/ )
To go faster we use a class with pre-defined functions. You can find this class on our codeplex page: http://prodeos.codeplex.com/
Best Regards,
Yoann